package chixing.day18.homework.work3_2;

public class PrinterThreadTest {
    public static void main(String[] args) {
        Printer printer = new Printer();
        for (int i = 0; i < 10; i++) {
            PrinterThread printerThread = new PrinterThread(printer);
            printerThread.start();
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
